/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.source.entity.font;

import java.util.List;

import javax.xml.bind.annotation.XmlTransient;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.sys.entity.User;

/**
 * 字体文件管理Entity
 * @author ZC
 * @version 2017-07-03
 */
public class EleSourceFont extends DataEntity<EleSourceFont> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 字体名称
	private String font;		// 字体
	
	public EleSourceFont() {
		super();
	}

	public EleSourceFont(String id){
		super(id);
	}

	public EleSourceFont(String id, String name){
		super(id);
		this.name = name;
	}
	public List<User> users = null;

	@XmlTransient
	public List<User> getUsers() {
		return users;
	}

	public void setUsers(List<User> users) {
		this.users = users;
	}

	@Length(min=0, max=50, message="字体名称长度必须介于 0 和 50 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=255, message="字体长度必须介于 0 和 255 之间")
	public String getFont() {
		return font;
	}

	public void setFont(String font) {
		this.font = font;
	}
	
}